#ifndef __WINDOW_H_
#define __WINDOW_H_

#include "SDL/SDL.h"
#include <string>
#include <iostream>
//窗口属性
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
const int SCREEN_BPP = 32;

using namespace std;

//我们的Window类
class Window
{
private:
    //窗口是否是窗口化的
    bool windowed;
#define WINDOW_OK 0
#define WINDOW_SCREENERR 1
#define WINDOW_DRAWERR 2
    //窗口状态记录
    bool windowStatus;
    SDL_Color screenColor;
    
    
public:
    //构造函数
    Window();
    
    //处理窗口事件
    void handle_events(SDL_Event event);
    
    //切换全屏/非全屏
    void toggle_fullscreen();
    
    //窗口当前状态
    int getWindowStatus();

    bool updateDraw();
    void clearScreen();
    
    SDL_Surface *screen;
    
};

#endif //__WINDOW_H_